package stattracker;

import java.util.ArrayList;
/*
 * --------------GOALS-------------------
 * Check MedalList Goals
 * also look into using standard array
 */
public class WeaponListUpdater
{
	public WeaponListUpdater()
	{
		
	}
	public ArrayList<Weapon> getWeapList()
	{
		ArrayList<Weapon> rankedWeap = new ArrayList<Weapon>(50);
		rankedWeap.add(new Weapon("Battle Rifle - BR55HB SR","MedalIcons/Weapons/BR.gif"));
		rankedWeap.add(new Weapon("Sniper Rifle - SRS 99D AM","MedalIcons/Weapons/Sniper.gif"));
		rankedWeap.add(new Weapon("Melee","MedalIcons/Weapons/Melee.gif"));
		rankedWeap.add(new Weapon("Shotgun - M90A CAWS","MedalIcons/Weapons/Shotgun.gif"));
		rankedWeap.add(new Weapon("Assault Rifle - MA5C ICWS","MedalIcons/Weapons/AR.gif"));
		rankedWeap.add(new Weapon("Frag Grenade - M9 HE-DP","MedalIcons/Weapons/Frag.gif"));
		rankedWeap.add(new Weapon("Plasma Grenade - (Type-1 AP-G)","MedalIcons/Weapons/Sticky.gif"));
		rankedWeap.add(new Weapon("Spartan Laser - WAV M6 GGNR","MedalIcons/Weapons/Splazer.gif"));
		rankedWeap.add(new Weapon("Energy Sword - (Type-1 EW/S)","MedalIcons/Weapons/Sword.gif"));
		rankedWeap.add(new Weapon("Carbine - (Type-51 Carbine)","MedalIcons/Weapons/Carbine.gif"));
		rankedWeap.add(new Weapon("Mongoose - M274 ULATV","MedalIcons/Weapons/Goose.gif"));
		rankedWeap.add(new Weapon("Missile Pod - LAU-65D","MedalIcons/Weapons/MisslePod.gif"));
		rankedWeap.add(new Weapon("Beam Rifle - (Type-50 SR)","MedalIcons/Weapons/Beam.gif"));
		rankedWeap.add(new Weapon("Rocket Launcher - M41 MAV/AW","MedalIcons/Weapons/Rock.gif"));
		rankedWeap.add(new Weapon("Guardians","MedalIcons/Weapons/WTF.gif"));
		rankedWeap.add(new Weapon("Mauler - (Type-52 Pistol)","MedalIcons/Weapons/Mauler.gif"));
		rankedWeap.add(new Weapon("Spike Grenade - (Type-2 AP-FG)","MedalIcons/Weapons/SpikeNade.gif"));
		rankedWeap.add(new Weapon("Gravity Hammer - (Type-2 EW/H)","MedalIcons/Weapons/Hammer.gif"));
		rankedWeap.add(new Weapon("Ball - Cranium.","MedalIcons/Weapons/Ball.gif"));
		rankedWeap.add(new Weapon("FlameThrower - M7057 DP","MedalIcons/Weapons/FlameThrower.gif"));
		rankedWeap.add(new Weapon("Needler - (Type-33 GML)","MedalIcons/Weapons/Needler.gif"));
		rankedWeap.add(new Weapon("Heavy Machine Gun - AIE-486H","MedalIcons/Weapons/Turret.gif"));
		rankedWeap.add(new Weapon("Ghost - (Type-32 RAV)","MedalIcons/Weapons/Ghost.gif"));
		rankedWeap.add(new Weapon("Brute Shot - (Type-25 GL)","MedalIcons/Weapons/BruteShot.gif"));
		rankedWeap.add(new Weapon("Magnum - M6G Pistol","MedalIcons/Weapons/Pistol.gif"));
		rankedWeap.add(new Weapon("Sub Machine Gun - M7/Caseless","MedalIcons/Weapons/SMG.gif"));
		rankedWeap.add(new Weapon("Explosion","MedalIcons/Weapons/WTF.gif"));
		rankedWeap.add(new Weapon("Spiker - (Type-25 Carbine)","MedalIcons/Weapons/Spiker.gif"));
		rankedWeap.add(new Weapon("Warthog - Driver","MedalIcons/Weapons/Warthog.gif"));
		rankedWeap.add(new Weapon("Warthog - M41 LAAG","MedalIcons/Weapons/Warthog.gif"));
		rankedWeap.add(new Weapon("Warthog - M68 ALIM","MedalIcons/Weapons/Warthog.gif")); //Guass
		rankedWeap.add(new Weapon("Bomb - No. 14 Anti-tank Mine","MedalIcons/Weapons/Garry.gif"));
		rankedWeap.add(new Weapon("Tripmine - TR/9 AP Mine","MedalIcons/Weapons/TripMine.gif"));
		rankedWeap.add(new Weapon("Banshee - (Type-26 GSA)","MedalIcons/Weapons/Banshee.gif"));
		rankedWeap.add(new Weapon("Elephant - M41 LAAG","MedalIcons/Weapons/ElTurret.gif"));
		rankedWeap.add(new Weapon("Chopper - (Type-25 RAV)","MedalIcons/Weapons/Chopper.gif"));
		rankedWeap.add(new Weapon("Flag","MedalIcons/Weapons/Flag.gif"));
		rankedWeap.add(new Weapon("Plasma Rifle - (Type-25 DER)","MedalIcons/Weapons/PlasmaRifle.gif"));
		rankedWeap.add(new Weapon("Plasma Pistol - (Type-25 DEP)","MedalIcons/Weapons/PlasmaPistol.gif"));
		rankedWeap.add(new Weapon("Wraith - Driver","MedalIcons/Weapons/Wraith.gif"));
		rankedWeap.add(new Weapon("Wraith - Gunner","MedalIcons/Weapons/Wraith.gif"));
		rankedWeap.add(new Weapon("Scorpion - M808B MBT","MedalIcons/Weapons/Scorpion.gif"));
		rankedWeap.add(new Weapon("Scorpion - M247T MMG","MedalIcons/Weapons/Scorpion.gif"));
		rankedWeap.add(new Weapon("Hornet - AV-14 Attack VTOL","MedalIcons/Weapons/Hornet.gif"));
		rankedWeap.add(new Weapon("Firebomb - (Type-3 AP/AM-IG)","MedalIcons/Weapons/Firebomb.gif"));
		rankedWeap.add(new Weapon("Classified","MedalIcons/Weapons/classified.gif"));
		rankedWeap.add(new Weapon("Fuel Rod Gun - (Type-33 LAAW)","MedalIcons/Weapons/FuelRodGun.gif"));
		rankedWeap.add(new Weapon("Sentinel Beam","MedalIcons/Weapons/SentinelBeam.gif"));
		rankedWeap.add(new Weapon("Plasma Cannon - (Type-42 DESW)","MedalIcons/Weapons/PlasmaCannon.gif"));
		rankedWeap.add(new Weapon("Prowler - (Type-52 ISV)","MedalIcons/Weapons/Prowler.gif"));
		//rankedWeap.add(new Weapon("","MedalIcons/Weapons/.gif"));
		return rankedWeap;
	}
	public static String getImageLocation(String name)
	{
		WeaponListUpdater helper = new WeaponListUpdater();
		for(Weapon w : helper.getWeapList())
		{
			if(w.getName().equals(name))
				return w.getImgLoc();
		}
		new ErrorMessage("No Weapon Data for: "+name+"\nReport this to www.mattcrain.com/forum in Bug Report section\nOr e-mail this to mattcrain@gmail.com" +
		"\n Please include your Gamertag with all bug reports.");
		return "MedalIcons/Weapons/Error.gif";
	}
}
